package com.wangsong.test2.controller;


import com.wangsong.test1.api.Test1API;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * 定时任务 controller
 *
 * @author ty
 * @date 2015年1月14日
 */
@Controller
@RequestMapping("/test2")
public class Test2Controller {

    @Autowired
    private Test1API systemAPI;

    //http://127.0.0.1:1101/service2/test2/test?text=12
    //http://127.0.0.1:2002/test2/test?text=12
    @RequestMapping("/test")
    @ResponseBody
    public Object get(String text) {
        return systemAPI.test(text);
    }



}
